/*
 * @Author: KaminStern
 * @Date: 2024-12-24 16:38:25
 * @LastEditors: KaminStern
 * @LastEditTime: 2024-12-24 18:23:44
 * @Description: 假数据
 */

// 类型声明
    interface DataType {
        id: number;
        name: string;
        age: number;
        address: string;
        type?: string; // type 是可选的，用于筛选
    }

    const fakeData: DataType[] = [];
    let sum = 0
    for (let i = 0; i < 15; i++) {
        sum += 1;
        fakeData.push({
          id: sum,
          name: `Edward King ${sum}`,
          age: 32,
          address: `London, Park Lane no. ${sum}`,
          type: '1'
        });
    }

    for (let i = 0; i < 5; i++) {
        sum += 1;
        fakeData.push({
          id: sum,
          name: `Edward King ${sum}`,
          age: 32,
          address: `London, Park Lane no. ${sum}`,
          type: '1-1'
        });
    }

    for (let i = 0; i < 20; i++) {
        sum += 1;
        fakeData.push({
          id: sum,
          name: `Edward King ${sum}`,
          age: 32,
          address: `London, Park Lane no. ${sum}`,
          type: '1-2'
        })
    };

    for (let i = 0; i < 14; i++) {
        sum += 1;
        fakeData.push({
          id: sum,
          name: `Edward King ${sum}`,
          age: 32,
          address: `London, Park Lane no. ${sum}`,
          type: '2'
        })
    };

    for (let i = 0; i < 3; i++) {
        sum += 1;
        fakeData.push({
          id: sum,
          name: `Edward King ${sum}`,
          age: 32,
          address: `London, Park Lane no. ${sum}`,
          type: '2-1'
        })
    };

    for (let i = 0; i < 6; i++) {
        sum += 1;
        fakeData.push({
          id: sum,
          name: `Edward King ${sum}`,
          age: 32,
          address: `London, Park Lane no. ${sum}`,
          type: '2-2'
        })
    };

export default fakeData;
